﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.SqlClient;

namespace TJADRICD.DLL
{
    class Connection
    {
        public static SqlConnection getSqlConnection(string connStr)
        {
            try
            {  
                return new SqlConnection(connStr);
            }
            catch (Exception e)
            {
                Console.WriteLine("数据库连接时发生："+e.Message);
            }
            return null;
        }
    }
}
